package com.lbb.springbootstock.controller;

import com.lbb.springbootstock.v2.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLException;

@RestController
public class Hello {
    @Autowired
    private StockService stockService;

    @GetMapping("/send")
    public String hello() throws SQLException {
        stockService.entrance();
        return "send ok";
    }
}
